/**
 * \* Created with IntelliJ IDEA.
 * \* User: 冯若航
 * \* Date: 2021/6/2
 * \* Time: 20:10
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class 唯一元素的和 {
    public int sumOfUnique(int[] nums) {
        int num[] =new int[110];
        for(int i:nums){
            num[i]++;
        }
        int res=0;
        for(int i=0;i<110;i++){
            if(num[i]==1){
                res+=i;
            }
        }
        return res;
    }
}